home *** CD-ROM | disk | FTP | other *** search
- rem This program dials a US Robotics Modem.
-
- rem The USR Password is Hayes compatible.
-
- rem 3
-
- rem By Steve Ligett.
-
- rem 5
-
- rem Version 1.0b1 November 1986
-
- rem 7
-
- rem This example uses each statement
-
- rem in the dialing language.
-
- goto 12
-
- display It is an error to display this message.
-
- display Hayes-Compatible Dialer
- V1.0B1
-
- wait 65
-
- count 3
-
- send +
-
- loop send 3 "+"s surrounded by silence
-
- count 8
-
- receive 10 10
-
- loop ignoring up to 7 lines
-
- rem Send a command to modem.
-
- send ATE0
-
-
- count 4
-
- receive 75 10
-
- if ok 31
-
- loop
-
- rem No response from Modem.
-
- display No response from modem.
- Check your cables, etc.
-
- goto 54
-
- rem 29
-
- rem Modem responded, try dialing.
-
- display Dialing ...
-
- send ATD
-
- dial
-
- send
-
-
- count 8
-
- receive 300 10
-
- if connect 47
-
- if error 43
-
- if busy 45
-
- loop
-
- display Dialing Failed.
-
- goto 54
-
- display Error, try again.
-
- goto 54
-
- display Busy, try again.
-
- goto 54
-
- display Connected.
-
- rem Wait for NED to get ready
-
- wait 120
-
- send
-
-
- receive 90 64
-
- stop 0
-
- rem error return
-
- wait 180
-
- stop 1
-
-